<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty indent t plugin
 *
 * Type:     modifier<br>
 * Name:     t<br>
 * Purpose:  translate text
 * @author   Dzung DH
 * @param string
 * @return string
 */
function smarty_modifier_a($url, $title){
  if (isCurrentUrl($url)) return sprintf('<a href="%s" class="active">%s</a>', l($url), $title);
  else return sprintf('<a href="%s">%s</a>', l($url), $title);
}

?>
